eCharts bar 系列的配置
在整个过程中踩了很多的坑,不知道是什么原因,barWidth 设置的宽度过大时会使得两个重叠的 bar 系列的宽度不相同,如若有人发现问题所在,欢迎指正。
html中引入指令
1 | <div data-e-charts data-config="identityData" style="height:200px"></div> |
directive.js 参见官网配置
1 | angular.module('myApp') |
controller.js
1 | $scope.identityData = { |
data.js
1 | module.exports = { |